Add pre-release/RC version filtering to update.ps1#3039
Merged
DRSDavidSoft merged 5 commits intomasterfrom Nov 7, 2025
Merged
Conversation
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Co-authored-by: DRSDavidSoft <4673812+DRSDavidSoft@users.noreply.github.com>
Contributor
Author
I've implemented the RC/pre-release filtering feature. The changes include:
By default, the script now only picks up stable releases. The GitHub Actions workflow will automatically benefit from this without any changes needed. Commits: 7373940, aa6b28a, d01ab39, a513d08 Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
[WIP] Update update.ps1 to exclude release candidate versions
Add pre-release/RC version filtering to update.ps1
Nov 7, 2025
Contributor
|
LGTM 👍🏻 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements filtering of release candidate (RC) and pre-release versions in the
scripts/update.ps1script to ensure only stable releases are used when updating dependencies.Changes Made
1. Added
-IncludePrereleaseParameter$false) to control whether pre-release versions should be included2. Created
Test-IsPrereleaseHelper Functionprereleaseboolean flag from the API response-rc,-beta,-alpha,-preview,-pre3. Updated
Fetch-DownloadUrlFunction$includePrereleaseparameter4. Added Verbose Logging
5. Documentation
How It Works
By default, the script now filters out all pre-release versions, ensuring only stable releases are selected:
prereleaseflag from the releases APIExample behavior:
v2.50.0-rcfor Git for Windows ❌v2.50.0-rcand use the latest stable version likev2.49.0✅Override option: Maintainers can pass
-IncludePrereleasewhen running the script to include pre-releases if needed.GitHub Actions workflow: The existing workflow will automatically use the default behavior (stable only) without requiring any changes.
Testing
Benefits
Fixes #3038
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.